package config;

import com.plumelog.trace.aspect.AbstractAspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @description: 配置链路日志的切入点，构建追踪码
 * @version: 1.0
 * @date: Created in 2020/7/28 10:07
 * @modified By:
 */
@Aspect
@Component
public class AspectConfig extends AbstractAspect {


    @Around("within(com.out.sourcing.business..*))")
    public Object around(JoinPoint joinPoint) throws Throwable {
        return aroundExecute(joinPoint);
    }
}
